import service from "../util/service";
import { AxiosPromise } from "axios";

// auth/user/temp/login

/**
 * 查询系统信息
 * @return {AxiosPromise}
 */
export function querySystemInfo(data: any) {
    return service.post<any, any>(`/auth/openapi/shareInit/initPlat`, { ...data })
    // return service.get<any, any>(`/customeropen/system/info`)
}

/**
 * 获取条款
 * @param file
 * @return {AxiosPromise}
 */
export function queryClause() {
    let data = {
        planId: "CUS_PRIVACY_AGR",
        clauseTitle: "客户隐私政策",
        kindCode: "CUS_PRIVACY_AGR",
    }
    return service.get<any, any>(`/platform/openapi/clause/queryClause`, { params: data })
}
